﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JinDu_In.aspx.cs" Inherits="syc.Fc.JinDu_In" %>
<html>
<head></head>
<body>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    <form id="form1" runat="server">
    <div id="wintop" class="wintop">生产进度 <asp:Label ID="Label1" runat="server" Text="录入"></asp:Label></div>
    
        <asp:Panel ID="Panel1" runat="server" CssClass="panel">

            <asp:Button ID="Button_Finish" runat="server" Text="保 存" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Finish_Click"  />
            <asp:Button ID="Button_New" runat="server" Text="录入下一条" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_New_Click" Visible="false"  />
            <input type="button" value="关 闭" class="button" onclick="parent.swin_close();" />
        </asp:Panel>

    <asp:Panel ID="Panel3" runat="server" CssClass="panel2">
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
    </asp:Panel>

    <asp:Panel ID="Panel4" runat="server" CssClass="panel2">
       <fieldset>
            <legend>常规</legend>
            分 厂：<asp:DropDownList ID="FenChang" runat="server" Width="140px" Enabled="false">
                <asp:ListItem Value="1">一分厂</asp:ListItem>
                <asp:ListItem Value="2">二分厂</asp:ListItem>
                <asp:ListItem Value="5">五分厂</asp:ListItem>
            </asp:DropDownList>          
            工 段：<asp:DropDownList ID="GongDuan" runat="server" Width="140px">
                <asp:ListItem Value="1">甲班</asp:ListItem>
                <asp:ListItem Value="2">乙班</asp:ListItem>
                <asp:ListItem Value="3">丙班</asp:ListItem>
                <asp:ListItem Value="4">丁班</asp:ListItem>
            </asp:DropDownList>
            <br />产 品：<asp:DropDownList ID="ChanPin" runat="server" Width="140px">
                <asp:ListItem Value="1">油管</asp:ListItem>
                <asp:ListItem Value="2">套管</asp:ListItem>
            </asp:DropDownList> 
            日 期：<asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" Width="120px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" />
        <asp:RadioButton ID="RadioButton1" runat="server" Text="1号线" GroupName="scx" Checked="true" Visible="false" AutoPostBack="true" oncheckedchanged="RadioButton1_CheckedChanged" />
        <asp:RadioButton ID="RadioButton2" runat="server" Text="2号线" GroupName="scx" Visible="false" AutoPostBack="true" oncheckedchanged="RadioButton2_CheckedChanged" />
        
        </fieldset>
        
       <fieldset>
           
            <legend>钢管</legend>
            计划支数：<asp:TextBox ID="JiHuaZhi" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            计划重量(kg)：<asp:TextBox ID="JiHuaZhong" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            投入支数：<asp:TextBox ID="TouRuZhi" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            投入重量(kg)：<asp:TextBox ID="TouRuZhong" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        
        <fieldset>
            <legend>车丝支数</legend>
            01# <asp:TextBox ID="CheSi1" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            02# <asp:TextBox ID="CheSi2" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            03# <asp:TextBox ID="CheSi3" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            04# <asp:TextBox ID="CheSi4" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            05# <asp:TextBox ID="CheSi5" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            06# <asp:TextBox ID="CheSi6" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>机紧</legend>
            自产(支)：<asp:TextBox ID="JiJin1" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            外购(支)：<asp:TextBox ID="JiJin2" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>静水压</legend>
            合格(支)：<asp:TextBox ID="JingShuiYa" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>称重测长</legend>
            支数：<asp:TextBox ID="CCZhi" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            长度(m)：<asp:TextBox ID="CCChang" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            重量(kg)：<asp:TextBox ID="CCZhong" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>成品包装</legend>
            支数：<asp:TextBox ID="BZZhi" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            捆数：<asp:TextBox ID="BZKun" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            长度(m)：<asp:TextBox ID="BZChang" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            重量(kg)：<asp:TextBox ID="BZZhong" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>成品入库</legend>
            支数：<asp:TextBox ID="RKZhi" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            捆数：<asp:TextBox ID="RKKun" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            长度(m)：<asp:TextBox ID="RKChang" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            重量(kg)：<asp:TextBox ID="RKZhong" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>未入库</legend>
            支数：<asp:TextBox ID="WRKZhi" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            重量(kg)：<asp:TextBox ID="WRKZhong" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <br /> 
 </asp:Panel>

    </form>
    
    <script>
        var textboxs = document.getElementsByTagName("input");
        for (var i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "textbox") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }
        }
        document.body.onkeypress = function(e) {
            if (!e) e = window.event;
            var tag = e.srcElement;
            if (!tag) tag = e.target;
            if (tag.className.toLowerCase() != "textbox") return;
            var i;
            if (e.keyCode == 13) {
                for (i = 0; i < textboxs.length; i++) {
                    if (tag == textboxs[i]) {
                        if (i < textboxs.length - 1) {
                            while (textboxs[i + 1].disabled) i++;
                            textboxs[i + 1].focus();
                        }
                        else {
                            document.getElementById("JiHuaZhi").focus();
                            //textboxs[7].focus();
                        }
                    }
                }
            }
        };
    </script>
</body>
</html>